#include "event.h"

volatile unsigned char eventTimer = 0, msCount50Event = 0;
volatile char	secTick = 0; // cycles at 1 Hz
volatile unsigned char	msCount50 = 0;

char setEvent(unsigned char ms50){
	if(eventTimer)
		return -1;
	msCount50Event = ms50;
	eventTimer = 1;
	return 0;
}